package com.xliang.shiro.chapter06.service;

import java.util.Set;

import com.xliang.shiro.chapter06.entity.User;

public interface UserService {
    public User createUser(User user);
    
    public void changePassword(Long userId, String password);
    
    public void correlationRoles(Long userId, Long... roleIds);
    
    public void uncorrelationRoles(Long userId, Long... roleIds);
    
    public User findByUserName(String username);
    
    public Set<String> findRoles(String username);
    
    public Set<String> findPermissions(String username);
}
